﻿using System;
using System.Windows.Forms;
using System.Xml;

namespace Send2Sharepoint.Forms
{
    public abstract class InputControl
    {
        public Label Label;
        public Control Field;
        private XmlNode _element;

        protected InputControl(XmlNode element)
        {
            _element = element;
            var attributeCollection = element.Attributes;
            var name = attributeCollection["Name"].Value;
            Label = new Label
            {
                Name = "lbl" + name,
                Text = attributeCollection["DisplayName"].Value
            };
        }
    }
}
